<%@ page language="java" import="java.util.*,ms.platform.system.model.*"
	pageEncoding="UTF-8"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%=basePath%>">
<title>部品列表</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="<%=basePath%>js/bootstrap-3.3.6/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/bootstrapValidator.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/mydialog.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style.css" />
<script type="text/javascript" src="<%=basePath%>js/common/jquery-2.1.0.js"  charset="utf-8"></script>
<script type="text/javascript" src="<%=basePath%>js/rem.js"  charset="utf-8"></script>
<script type="text/javascript" src="<%=basePath%>js/bootstrap-3.3.6/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/common/dialog.3.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/delete.js"></script>
<body>
	<div id="index-hav2">
		<div class="index-hav-right" id="index-hav-right-clear">
			<div class="row">
				<div class="col-md-9">
					<span id="icon-house"> </span><span id="arrows-left">首页</span> 
					 <!--  <span id="arrows-left">></span><span>系统管理</span> 
					<span id="arrows-left">></span><span>用户管理</span>-->
				</div>
				<div class="bank-box">
					<div class="lianlian platform">
						<div class="col-md-12">
							<form role="form" id="queryForm">
								<table class="textTable">
									<tr>
										<td class="platform-start">部品番号:</td>
										<th class=""><input type="text" class="Wdate form-control input-sm" name="username" value="${map['username'] }"></th>	
										<td class="platform-start">厂商代码:</td>
										<th class=""><input type="text" class="Wdate form-control input-sm" name="phone" value="${map['phone'] }"></th>
										<td class="platform-start">厂商名称:</td>
										<th class=""><input type="text" class="Wdate form-control input-sm" name="email" value="${map['email'] }"></th>
										<td class="platform-start">审核状态:</td>
										<th class=""><input type="text" class="Wdate form-control input-sm" name="email" value="${map['email'] }"></th>
										
									</tr>
									<tr>
									</tr>
								</table>
								<ul class="textBtn">
								   <li class="">
								   		<!-- <button type="button" class="sha btn btn-primary btn-sm">密码加密</button>
								   		 --><button type="button" class="queryForm queryFormbtn-sub btn btn-primary btn-sm chaxun">查询</button>
										<!--  <button type="button" class="clearForm btn btn-primary btn-sm">重置</button>
										<button type="button" class="addAdmin btn btn-primary btn-sm">添加</button>-->
									</li>
								</ul>
							</form>
							<table class="control-tatle table table-striped table-bordered table-hover" action="<%=path%>/system/admin/list">
								<thead class="financing-thead">
									<tr>
										<th style="width: 5%">序号</th>
										<th style="width: 10%">部品番号</th>
										<th style="width: 10%">厂商代码</th>
										<th style="width: 10%">厂商名称</th>
										<th style="width: 8%">提交人</th>
										<th style="width: 8%">审核人</th>
										<th style="width: 15%">提交时间</th>
										<th style="width: 15%">审核时间</th>
										<th style="width: 8%">审核状态</th>
										<th style="width: 20%">操作</th>
									</tr>
								</thead>
								<tbody>
									<c:if test="${not empty list}">
										<c:forEach items="${list }" var="admin" varStatus="r">
											<tr>	
												<td>${r.index+1 }</td>
												<td>${admin.username }</td>
												<td>${admin.mobile }</td>
												<td>${admin.phone }</td>
												<td>${admin.email }</td>
												<td class="isUsedId">
													<c:if test="${admin.isUsed==1 }">启用</c:if> 
			                            			<c:if test="${admin.isUsed==0 || admin.isUsed==2  }"><span style="color: red">禁用</span></c:if>
												</td>
												<td><fmt:formatDate value="${admin.createDate }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
												<td id="${admin.id }">
													<c:if test="${admin.isUsed==1 }">
														<span class="span1" name="disabledAdmin" isUsed=0>禁用</span>
													</c:if> 
													<c:if test="${admin.isUsed==0 }">
														<span class="span1" name="disabledAdmin" isUsed=1>启用</span>
													</c:if> 
													<span name="editAdmin" class="span1">编辑</span>
													<span name="editPassword" class="span1">修改密码</span> 
													<span name="deleteUser" data-toggle='modal' data-target='#bxModal' class="span1">删除</span> 
													<span name="toAllotRole" data-toggle="modal" data-target="#myModal" class="span1" >分配角色</span>
												</td>
												<input type="hidden" class="hiddenId" value="">
											</tr>
										</c:forEach>
									</c:if>
									<c:if test="${empty list}">
										<tr>
											<td colspan="10"><label class="control-label text-center">无记录</label></td>
										</tr>
									</c:if>
								</tbody>
										<tr style="background:#f8f8f8">
											<td colspan="10"><jsp:include page="/WEB-INF/jsp/page.jsp"></jsp:include></td>
										</tr>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 分配角色面板 start -->
		<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true" adminId>
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">分配角色</h4>
					</div>
					<div class="modal-body">
						<div class="checkbox">
							<label><input type="checkbox" name="allCheckbox">全选</label>
						</div>
						<c:forEach items="${roleList }" var="role">
							<div class="checkbox">
								<label><input type="checkbox" name="roleCheckbox" value="${role.id }">${role.roleName }</label>
							</div>
						</c:forEach>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" id="allotUserRole">保存</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					</div>
				</div>
			</div>
		</div>
		<!-- 分配角色面板end -->
		<!-- 删除弹框 start -->
						<div class="modal fade" id="bxModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
						     <div class="modal-dialog modal-tbxb" style=" top:50%; margin-top:-5%;">
						          <div class="modal-content" >
						               <div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
											<h4 class="modal-title">提示</h4>
									   </div>
									   <div class="modal-body">
									       <div class="form-group financialRisk" style="text-align:center;">
												是否确认删除？
								          </div>
								          <ul class="col-btn-12">
											<li>
												<button class="btn-primary btn" id="deleteDict" data-dismiss="modal" aria-hidden="true">确认</button>
												<button type="button" class="btn-default btn" data-dismiss="modal" aria-hidden="true">取消</button>
											</li>
										</ul>
									   </div>
						          </div>
						     </div>
						</div>
						<!-- 删除弹框 end -->
						<!-- 提示弹框 start -->
					<!-- 	<div class="modal fade" id="bxModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
						     <div class="modal-dialog modal-tbxb" style=" top:50%; margin-top:-5%;">
						          <div class="modal-content" >
						               <div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
											<h4 class="modal-title">提示</h4>
									   </div>
									   <div class="modal-body">
									       <div class="form-group financialRisk" style="text-align:center;">
												
								          </div>
								          <ul class="col-btn-12">
											<li>
												<button class="btn-primary btn" id="" data-dismiss="modal" aria-hidden="true">确认</button>
											</li>
										</ul>
									   </div>
						          </div>
						     </div>
						</div> -->
						<!-- 提示弹框 end -->
	</div>
	<div id="gray-screen"></div>
</body>
</html>